#include <stdio.h>
#include <stdlib.h>
void main( )
{
    int time;
    printf("please enter time value:");
    scanf("%d",&time);
    printf("time = %d\n",time);
    switch (time)
    {
        case 1: printf("今天是周一\n");break;
        case 2: printf("今天是周二\n");break;
        case 3: printf("今天是周三\n");break;
        case 4: printf("今天是周四\n");break;
        case 5: printf("今天是周五\n");break;
        case 6: printf("今天是周六\n");break;
        case 7: printf("今天是周日\n");break;
        default:printf("查询无结果\n");break;
    }
    system("pause"); //调用系统函数实现暂时保留控制台
}